package dijkstry_seq;

import java.util.List;

public class DijkstryTest {

	public static void main(String[] args) {
		
		generator gen = new generator();
		int[][] mat = new int[6][6];
		
		gen.generuj_Macierz(mat, 6, "D:\\plik3.xml");
		
		
		DijkstrySeq test = new DijkstrySeq("D:\\plik3.xml");
		test.computePaths(0);
		
		for (int i=0; i<6; i++)
		{
		    System.out.println("Distance to " + i);
		    List<Vertex> path = test.getShortestPathTo(i);
		    System.out.println("Path: " + path);
		}

	}
}
